<?php
require_once 'include/common.inc.php';
require_once 'head.php';
require_once 'include/NewsFun.php';
require_once 'include/pager.class.php';

$pid=$_GET['pid'];
$cid=$_GET['cid'];
$pageSize=$_GET['ps'];
$isp=$_GET['isp'];
$kw=$_POST['kw'];
$parid=getParentId($pid,'img');

if($parid==0) $parid=$pid;

$nsql='select * from tb_img where lang=\'cn\' and';
$where='';
if($isp!=1)$where.=' class2='.$pid;
else $where.='  class1='.$pid;
if(!empty($kw)) $where.=' and title like \'%'.$kw.'%\'';
$where.=' order by id desc';
$nsql.=$where;
$row=$db->query($nsql);

$total=$db->counter("tb_img","lang='cn' and ".$where,"*");
/**/
$total=30;

$page=new Pager($total, $pageSize, $cid);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $webName;?>--<?php echo $url;?></title>
<meta name="keywords" content="<?php echo $keyword?>--<?php echo $url;?>" />
<meta name="description" content="<?php echo $description;?>--<?php echo $url;?>" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/webskys.js"></script>
<script type="text/javascript" src="js/ie6png.js"></script>
<script type="text/javascript" src="js/gun.js"></script>
</head>
<body>
<div class="top">
<div class="topright">
<ul>
<li class="li01"><a href='/'>首页</a></li>
<li class="li02"><a href='javascript:void();' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $url;?>');" rel="nofollow">设为首页</a></li>
<li class="li03"><a onclick="window.external.addFavorite(location.href,document.title)" href="javascript:void();" rel="nofollow">加入收藏</a></li>
</ul>
</div>
<div class="logo">
<a href="/" title="-前端设计webskys.com"><img src="<?php echo $logo;?>" width="502" height="71"  alt="<?php echo $webName;?>/></a></div>
<div class="righttel">
<img src="images/tel.png" width="200" height="30"  alt="前端设计联系电话"/></div>
<div class="webnav">
<ul>
<li class="licur"><a href="/" title="网站首页">网站首页</a></li>
 <?php 

 	
    echo  $nav->getNavhtml($res);
 	
?>
</ul>
</div>
</div>
<div class="banner">
<div id="banlbar"></div>
<div id="banrbar"></div>
<div id="banh">
<ul>
<?php 
	echo $nav->getFlashHtml($frow);
?>
<!-- 
<li><img src="images/banner01.jpg" /></li>
<li><img src="images/banner02.jpg" /></li>
<li><img src="images/banner03.jpg" /></li>
<li><img src="images/banner04.jpg" /></li> -->
</ul>
</div>
</div>

<div class="index_con">
<div class="page_left">
<h2 class="left_title">解决方案</h2>
<div class="leftbg borl_r">
<ul class="classul">
<?php 
	if($isp==1)
	echo getSubClass($pid);
	else  echo getSubClass($parid);
?>
<!-- 
<li><a href="#">大型办公楼解决方案</a></li>
<li><a href="#">学校案例设施解决方案</a></li>
<li><a href="#">医院政府部门解决方案</a></li>
<li><a href="#">银行、商场解决方案</a></li> -->
</ul>
</div>
<div class="left_bot"></div>
<div class="magtop10 search">
<p class="searchp01">站内搜索</p>
<form action="#" method="post">
<input name="" type="text" class="searchinp"/>
<p class="searchp02"><input type="submit" value="　　" class="searchbon" /></p>
</form>

</div>
<div class="magtop10"><a href="#" title="留言反馈"><img src="images/left01.gif"  alt="留言反馈"/></a></div>
<div class="magtop10"><a href="#" title=""><img src="images/left02.gif"  alt="在线加盟"/></a></div>
</div>
<div class="page_right">
<div class="pagetop"><span class="web_navi">当前位置：<a href="#">首页</a> &gt;&gt; 解决方案 &gt;&gt; 大型办公楼解决方案</span><h2><a href="#">解决方案</a></h2>
</div>
<div class="picul">
<?php 
	/**/
	while ($rs=$db->fetch_array($row)){
		//echo '<li><a href="newsdetail.php?nid='.$rs['id'].'&pid='.$parid.'&ps='.$pageSize.'&cid='.$cid.'&isp='.$isp.'" target="_self">'.$rs['title'].'</a><span>2010-11-02</span></li>';
		echo'<li><a href="caseinfo.php?pid='.$parid.'&sid='.$rs['id'].'" title="'.$rs['description'].'"><img src="'.$rs['imgurl'].'" alt="'.$rs['description'].'" width="192" height="135" /></a><p><a href="#" title="'.$rs['description'].'">'.$rs['title'].'</a></p></li>';
	}
		
	
?>

</div>
<div class="epages">
<?php 
	 
     echo $page->link("product.php?pid=".$pid."&cid=".$cid."&ps=".$pageSize."&isp=0",'');
	?>
</div>

<?php
require_once 'secfoot.php';
?>